#ifndef TSB_BASE_DATA_BUFFER
#define TSB_BASE_DATA_BUFFER
/*
* 
* @license	Apache License 2.0
* @author	Eugene Kuznetsov
*
*/

#include "Base.hpp"

class CDataBuffer
{
public:
	CDataBuffer();
	CDataBuffer(Chr* buffer);
	CDataBuffer(UChr* buffer, UInt32 size);
	CDataBuffer(const CDataBuffer& DataBuffer);
	~CDataBuffer();

	const UChr * data() const;
	UInt32 size() const;

	void append(Chr* buffer);
	void append(UChr* buffer, UInt32 size);
	void clear();

private:
	UChr * m_pData;
	UInt32 m_nSize;
};

#endif
